<template>
  <div id="app">
    <!-- 路由占位符 -->
    <router-view v-if="isRouterActive"></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  provide(){
    return{
      reload: this.reload
    }
  },
  data(){
    return{
      isRouterActive: true
    }
  },
  components: {
  },
  methods: {
    reload(){
      this.isRouterActive = false;
      this.$nextTick(() => {
        this.isRouterActive = true;
      })
    }
  }
}
</script>

<style>
</style>
